<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Error</title>
</head>
<body>
    <h1>An error occurred</h1>
    <p>An error occurred; please try again later.</p>
    <?php if(gettype($this->errors) != 'string'): ?>
    <p>
    	<?php foreach($this->errors as $error): ?>
    		<?php echo $error; ?>
    	<?php endforeach; ?>
    </p>
    <?php else: ?>
    <?php echo $this->errors; ?>
    <?php endif; ?>
</body>
</html>
